package com.acme.bankapp.domain.email;

import com.acme.bankapp.domain.exceptions.EmptyEmailBoxException;
import com.acme.bankapp.domain.exceptions.MailCantBeAdded;

public interface Queue {

	public Email getEmail() throws EmptyEmailBoxException;

	public void addEmail(Email email) throws MailCantBeAdded;

	public void close();
	
	public boolean isClosed();
}
